<@master template="master/master-p2p"  title="${title}banner图">
     <div class="detailsBox">
     		<div class="openBox">
               <h3><i class="jtIco"></i>banner图信息</h3>
               <div class="detaiTab">
			    <form  name="save" id="save" action='/bannerRest/saveBanner' method ='post'  class="action-ajax-form action-ajax-form-valid" >
			                  <table width="100%" cellspacing="0" cellpadding="0" border="0">
			                       <tbody>
			                           
			                          <tr>	                              
		                                 <td width="15%" align="right" class="bg">banner图名称：<font color="red">*</font></td>
		                                 <td > 
		                                      <input type="text"  id="name" value="${vo.name}" size="20" name="name"   class="action-valid-field" data-action-valid-rule="required;maxlength:30;" data-action-valid-msg-required="名称不能为空！"  autocomplete="off"/>
		                                	  <span class="action-field-error" for="name" style="color:red;"></span>                             	
		                                 </td>
		                                 <td width="15%" align="right" class="bg">banner图编号：<font color="red">*</font></td>
		                                 <td > 
		                                      <input type="text"  id="code" value="${vo.code}" size="20" name="code"   class="action-valid-field" data-action-valid-rule="required;maxlength:30;" data-action-valid-msg-required="编号不能为空！"  autocomplete="off"/> <font color="red"> (此字段是前台展示所用，同一个位置编号需要保持相同)</font>
		                                	  <span class="action-field-error" for="code" style="color:red;"></span>                             	
		                                 </td>
		                                 
	                                  </tr>
	                                  <tr>
	                                     <td width="15%" align="right" class="bg">链接网址：</td>
		                                 <td > 
		                                      <input type="text"  id="url" value="${vo.url}" size="20" name="url"     class="action-valid-field"/>                           	
		                                 </td>	                              
		                                 <td width="15%" align="right" class="bg">播出序号：<font color="red">*</font></td>
		                                 <td > 
		                                      <input type="text"  id="bannerOrder" value="${vo.bannerOrder}" size="20" name="bannerOrder"   class="action-valid-field" data-action-valid-rule="required;maxlength:30;number;reg:^[1-9]\d*$;" data-action-valid-msg-required="banner图排序不能为空！"  autocomplete="off"/>
		                                	  <span class="action-field-error" for="bannerOrder" style="color:red;"></span>                             	
		                                 </td>
		                                
	                                  </tr>
	                                   <tr>
	                                     <td width="15%" align="right" class="bg"> 是否启动超链接：</td>
		                                 <td > 
		                                     <@select dataSouceType="is_link_enabled" type="radio"  name="isLinkEnabled" value="${vo.isLinkEnabled}"/>
		                                      
		                                 </td>	                              
		                                 <td width="15%" align="right" class="bg">链接打开方式：</td>
		                                 <td > 
		                                      <@select dataSouceType="target" type="radio" name ="target" value="${vo.target}"/>                             	
		                                 </td>		                              
	                                  </tr>
	                                   <tr>
			                            <td align="right" class="bg">banner图上传： </td>
			                            <td><@fileUpload url="/bannerRest/banner_file/upload/banner" title="选择文件..."  />
			                           <#if "${vo.id}" ==	"">  
			                            <input type="hidden"  name="imageUrl" id="imageUrl"  value="${vo.imageUrl}" /> 
			                               <#else>
			                               <td>
			                                <input type="text"  size="40" name="imageUrl" id="imageUrl"  value="${vo.imageUrl}" /> 
			                                <td>
			                            </#if> 
			                            </td>
                                      </tr>
			 					   </tbody>
					          </table>   
					          <br/>
							  <div class="clearfix" align="center"> 
							   	 <input type="hidden" name="id" value="${vo.id}"/>
				                 <input type="submit" name="savebutton" class="btn_auto_30 btn_blue" value="保存">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				                  <a class="btn_auto_30 btn_blue ml10" href="/banner/index" target="_self">返回</a>
							  </div>
							  <br/>
					      </form>
			    </div>
		   </div>  
	</div>	

</@master>